* {
  margin: 0;
  padding: 0;
}

body {
  --light-bgc: #fff;
  --light-textwrapbgc: #fff;
  --light-shadowcolor: #ccc;
  --dark-bgc: #272b38;
  --dark-textwrapbgc: #f1f3f4;
  --dark-shadowcolor: #333;
  --bgc: #fff;
  --textwrapbgc: #fff;
  --shadowcolor: #ccc;
  --musiccolor: #272b38;
  --linearbarcolor: #ffffff9a;
  --taiyang: url("../icon/taiyang.png");
  --yueliang: url("../icon/yueliang.png");
  --switchIcon: var(--yueliang);
  --transition-time: 0.3s;
  --linear-bar-show: visible;
  background: var(--bgc);
  overflow: hidden;
  transition: var(--transition-time);
}

.search-wrap {
  position: absolute;
  left: 50%;
  margin-left: -350px;
  width: 700px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.search-wrap .search-box {
  width: 90%;
  height: 58px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 250px;
  padding: 5px 0;
  border-radius: 58px;
  box-shadow: 0 -1px 2px var(--shadowcolor), 0 4px 4px var(--shadowcolor);
  transition: .5s ease-in-out;
  background: var(--textwrapbgc);
}

.search-wrap .search-box .btn {
  cursor: pointer;
  outline: none;
  border: none;
  background: transparent;
  padding: 10px;
}

.search-wrap .search-box .btn i {
  color: #ee264e;
  font-size: 2rem;
  font-weight: lighter;
  transition: .3s;
}

.search-wrap .search-box .switch {
  position: absolute;
  right: 28px;
  bottom: -37px;
}

.search-wrap .search-box .mint-switch {
  position: absolute;
  right: 28px;
  bottom: 80px;
  z-index: 999;
}

.search-wrap .search-box .mint-switch-input:checked + .mint-switch-core {
  background: #fff;
  border-color: #fff;
}

.search-wrap .search-box .mint-switch-core {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 30px;
  border: 1px solid #d9d9d9;
  border-radius: 15px;
  box-sizing: border-box;
}

.search-wrap .search-box .mint-switch-core::before {
  width: 50px;
  height: 28px;
  background-color: #272b38;
}

.search-wrap .search-box .mint-switch-core::after {
  width: 28px;
  height: 28px;
  background-color: #fff;
  background: var(--switchIcon);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: .2s;
}

.search-wrap .searched {
  margin-top: 180px;
}

.search-wrap .el-autocomplete {
  width: 80%;
}

.search-wrap .el-autocomplete .el-input {
  width: 100%;
}

.search-wrap #search-text {
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  padding: 5px 10px;
  background: transparent;
  transition: .3s;
}

.search-wrap #search-text::-webkit-input-placeholder {
  color: #ccc;
}

.search-wrap .music-list {
  width: 120%;
  margin-top: 15px;
  padding-top: 2px;
  position: relative;
}

.search-wrap .music-list::before {
  content: '';
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, var(--bgc) 10%, var(--linearbarcolor) 50%, rgba(255, 255, 255, 0));
  position: absolute;
  top: 30px;
  left: 0;
  z-index: 999;
  visibility: var(--linear-bar-show);
}

.search-wrap .music-list::after {
  content: '';
  width: 100%;
  height: 20px;
  background: linear-gradient(to top, var(--bgc) 10%, var(--linearbarcolor) 50%, rgba(255, 255, 255, 0));
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: var(--linear-bar-show);
}

.search-wrap .music-list h3 {
  text-align: center;
  font-size: 14px;
  font-weight: lighter;
  color: #ccc;
  position: relative;
}

.search-wrap .music-list h3 b {
  color: #ee264e;
}

.search-wrap .music-list ul {
  list-style: none;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 200px;
  max-height: 53vh;
  margin-top: 10px;
  padding-left: 10px;
  padding-top: 20px;
  padding-bottom: 10px;
  overflow-y: auto;
}

.search-wrap .music-list ul::-webkit-scrollbar {
  width: 15px;
}

.search-wrap .music-list ul li {
  margin: 2px 5px;
  height: 20px;
  line-height: 20px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: lighter;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.search-wrap .music-list ul li:nth-child(n) {
  background: rgba(252, 100, 125, 0.685);
}

.search-wrap .music-list ul li:nth-child(2n) {
  background: rgba(255, 220, 62, 0.705);
}

.search-wrap .music-list ul li:nth-child(3n) {
  background: rgba(99, 236, 57, 0.726);
}

.search-wrap .music-list ul li:nth-child(4n) {
  background: rgba(64, 216, 243, 0.74);
}

.search-wrap .music-list ul li:nth-child(5n) {
  background: rgba(201, 86, 255, 0.705);
}

.search-wrap .music-list ul li a {
  text-decoration: none;
}

.search-wrap .music-list ul li a:link, .search-wrap .music-list ul li a:visited, .search-wrap .music-list ul li a:active {
  color: #272b38;
  color: var(--musiccolor);
}

.search-wrap .music-list ul li .cloud-password {
  margin-top: 10px;
  width: 1px;
}

.el-tooltip__popper #cloud-password {
  width: 2rem;
  border: none;
}

.el-tooltip__popper[x-placement^=top] {
  margin-bottom: 3px !important;
}

@media screen and (max-width: 800px) {
  .search-wrap {
    width: 100%;
    left: auto;
    margin: 0;
  }
  .search-wrap .search-box {
    height: 40px;
    padding: 0;
    border-radius: 40px;
    box-shadow: 0 -1px 2px var(--shadowcolor), 0 2px 2px var(--shadowcolor);
  }
  .search-wrap .search-box .btn {
    outline: none;
    border: none;
    background: transparent;
    padding: 10px;
  }
  .search-wrap .search-box .btn i {
    font-size: 1rem;
  }
  .search-wrap .search-box .mint-switch {
    position: absolute;
    right: 18px;
    bottom: 50px;
    z-index: 999;
  }
  .search-wrap .search-box .mint-switch-input:checked + .mint-switch-core::after {
    transform: translateX(10px);
    -webkit-transform: translateX(10px);
  }
  .search-wrap .search-box .mint-switch-core {
    width: 30px;
    height: 20px;
    border: 1px solid #d9d9d9;
    border-radius: 15px;
  }
  .search-wrap .search-box .mint-switch-core::before {
    width: 30px;
    height: 18px;
    background-color: #272b38;
  }
  .search-wrap .search-box .mint-switch-core::after {
    width: 18px;
    height: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
  .search-wrap .el-autocomplete {
    width: 80%;
  }
  .search-wrap .el-autocomplete .el-input {
    width: 100%;
  }
  .search-wrap #search-text {
    font-size: 1rem;
  }
  .search-wrap .music-list {
    width: 100%;
  }
  .search-wrap .music-list::before {
    top: 42px;
  }
  .search-wrap .music-list::before, .search-wrap .music-list::after {
    display: none;
  }
  .search-wrap .music-list h3 {
    font-size: 12px;
  }
  .search-wrap .music-list ul {
    max-height: 50vh;
  }
  .search-wrap .music-list ul li {
    font-size: 12px;
  }
}
